There are two ways to create new lin in RichtTextBox control in C#, by  using:

  • RichTextBox.Text property
  • RichtTextBox.AppendText method

RichTextBox.Text property

myRichTextBox.Text += Environment.NewLine + "New line goes here";

RichtTextBox.AppendText method

myRichTextBox.AppendText(Environment.NewLine + "New line goes here");

 

Related Articles

Export Data from DataTable to PDF in C# using iTextSharp

Create Your First C# Program

Create a Simple Thread Program Using C#

Last modified: February 22, 2019

Comments

Write a Reply or Comment

Your email address will not be published.